package com.huyi.web.domain;

import java.io.Serializable;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


import com.huyi.common.group.GroupA;
import com.huyi.common.group.GroupB;

import lombok.Data;

// 需要安装lombok插件
@Data
public class SylarOrderDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7333899208017497745L;

	@NotBlank(message = "crfUid不能为空", groups = { GroupA.class, GroupB.class })
	private String crfUid;

	@NotNull(message = "产品类型不能为空", groups = { GroupA.class })
	@DecimalMin(value = "1", message = "产品类型必须在1~2之间", groups = { GroupA.class })
	@DecimalMax(value = "2", message = "产品类型必须在1~2之间", groups = { GroupA.class })
	private String productType;

	@NotBlank(message = "订单号不能为空", groups = { GroupB.class })
	private String orderNo;

}
